/*
package system;

import org.springframework.jdbc.core.JdbcTemplate;

import javax.sql.DataSource;

*/
/**
 * Created by IntelliJ IDEA.
 * User: adminx
 * Date: 14.08.12
 * Time: 11:15
 * To change this template use File | Settings | File Templates.
 *//*


public class ElectronicLibrarySystem {

    private DataSource dataSource;

    public void setDataSource(DataSource ds) {
        dataSource = ds;
    }

    public void create(String nameBook, String nameAuthor, String publishing, String description) {
        JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);
        jdbcTemplate.update("INSERT into Book (nameBook,nameAuthor,publishing,description) VALUES (?,?,?,?)",
                new Object[]{nameBook, nameAuthor, publishing, description});
    }
}
*/
